import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-27
 * Time: 16:48
 */
public class Test {
    public static void main(String[] args) {
        MySignalList<Integer> list = new MySignalList<>();
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.disPlay();
        list.modifyAll(5,99);
        list.disPlay();
/*        MySignalList.ListNode ret = list.find(0);
        System.out.println(ret);*/
    }

    public static void main1(String[] args) {
        MySignalList<Integer> list = new MySignalList<>();
//        list.addFirst(3);
//        list.addFirst(2);
//        list.addFirst(1);
//        list.disPlay();
//        list.addLast(4);
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.disPlay();
//        //list.addIndex(1,99);
//        list.removeAll(4);
//        list.disPlay();
        System.out.println(list.contains(0));
    }
}
